import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SDrawPlateRewardInfo
    
    export  class SDrawPlateRewardInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDrawPlateRewardInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.order);
            arg1.writeInt(this.plateType);
            arg1.writeInt(this.itemCode);
            arg1.writeInt(this.num);
            arg1.writeInt(this.chance);
            arg1.writeLong(this.aboutTime);
            arg1.writeInt(this.condition);
            arg1.writeInt(this.amount);
            arg1.writeInt(this.lowestLevel);
            arg1.writeInt(this.highestLevel);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.order = arg1.readInt();
            this.plateType = arg1.readInt();
            this.itemCode = arg1.readInt();
            this.num = arg1.readInt();
            this.chance = arg1.readInt();
            this.aboutTime = arg1.readLong();
            this.condition = arg1.readInt();
            this.amount = arg1.readInt();
            this.lowestLevel = arg1.readInt();
            this.highestLevel = arg1.readInt();
            return;
        }

        public /* const */_type: int=12387;

        public /* var */order: int;

        public /* var */plateType: int;

        public /* var */itemCode: int;

        public /* var */num: int;

        public /* var */chance: int;

        public /* var */aboutTime: number;

        public /* var */condition: int;

        public /* var */amount: int;

        public /* var */lowestLevel: int;

        public /* var */highestLevel: int;

        public static /* var */_regist: SDrawPlateRewardInfo;
    }

            SDrawPlateRewardInfo._regist = new SDrawPlateRewardInfo(true);
        